#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define MAX_LEN  2000
#define MAX_CHAR 256

int main()
{
		int T, i, n;
		freopen("test3.in", "w", stdout);

		srand(time(NULL));
		scanf("%d", &T);
		while (T--) {
				n = rand() % MAX_LEN + 1;
				for (i = 0; i < n; i++) {
						printf("%02X", rand() % MAX_CHAR);
				}
				printf("\n");
		}

		return 0;
}

